﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace DataPreparation
{
    class Program
    {
        static void Main(string[] args)
        {
            Dictionary<string, string> readDocs = DocumentsReader.ReadAlltxtFile(@"..\..\Files"); //read all files
            List<IItem> allDoc = new List<IItem>(DocumentsParser.ParserFolder(readDocs)); //parser files and return list of items
            DBGenerator d = new DBGenerator();
            Directory.CreateDirectory(@"..\..\..\TMSimulator\bin\Debug\data");
            d.GenerateDB(allDoc,@"..\..\..\TMSimulator\bin\Debug\data\SerializedDB.bin");
        }
    }
}
